Re: About a thread safe problem of the WebApplication class

2008-12-23 Thread Johan Compagner
Hmm weird nobody else seem to notice this before, we just should make
it a concurrenthashmap

On 24/12/2008, 加納充照  wrote:
> The following errors occurred when the performance of the wicket
> application was tested.
>
> [Trace of error]
> [08/12/18 9:53:34:575 JST] 003e SystemOut O 2008-12-18
> 09:53:34,499 ERROR RequestCycle - concurrent access to
> HashMap attempted by Thread[WebContainer : 6,5,main]
> java.util.ConcurrentModificationException: concurrent access to
> HashMap attempted by Thread[WebContainer : 6,5,main]
> at java.util.HashMap.onExit(HashMap.java:217)
> at java.util.HashMap.transfer(HashMap.java:514)
> at java.util.HashMap.resize(HashMap.java:500)
> at java.util.HashMap.addEntry(HashMap.java:800)
> at java.util.HashMap.put(HashMap.java:441)
> at
> org.apache.wicket.protocol.http.WebApplication.addBufferedResponse(WebApplication.java:639)
> at
> org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:201)
> at
> org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
> ・・・
>
> [Test environment]
> OS:AIX5.3 TL005 +WAS6.1.0.21
> Java:JDK1.5.0
> Wicket:wicket1.3.5
>
> [Consideration And Question]
> I think that it is a cause that the bufferedResponses instance of the
> WebApplication class is not the thread safe.
>
> The sessionDestroyed method and the addBufferedResponse method of the
> WebApplication class might have to be controlled exclusively(When
> these methods were declared in synchronized, the problem was
> canceled).
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



HTTP error code 404 is returned by Wicket1.3.5(WicketFilter) and WAS6.0.1(And FixPack 21).

2008-12-23 Thread Michiaki Kanou
I am using Wicket1.3.5 and WAS6.1.0(And FixPack21) now, and when
WicketFilter is used,
HTTP error code 404 is occur(It is not occur in Tomcat5.0.28).

The following question is here.

In the close() method of BufferedWebResponse, the Writer instance
might have to be shut.
For instance, after the write() method is called, I think that
getHttpServletResponse().getWriter().close()
is necessary.

When the close method of BufferedWebResponse was corrected as follows,
the problem
is canceled.

public void close()
{
// If a redirection was specified
if (redirectURL != null)
{
// actually redirect
super.redirect(redirectURL);
}
else
{
// Write the buffer to the response stream
if (buffer.length() != 0)
{
super.write(buffer);

//-- TODO 2008/12/16 kanou add start --
try {
getHttpServletResponse().getWriter().flush();
getHttpServletResponse().getWriter().close();
} catch (IOException ioe) {
throw new WicketRuntimeException(getClass().getName()
+ " close() failed.");
}
//-- 2008/12/16 kanou add end --
}
}
}

[Note]
When WicketServlet is used, the servlet container closes the response object.
However, when WicketFilter is used, I think that I depend on the
servlet container.

It is being written in the specification of servlet API2.4 of Sun.

--
SRV.5.5 Closure of Response Object
When a response is closed, the container must immediately flush all remaining
content in the response buffer to the client. The following events
indicate that the
servlet has satisfied the request and that the response object is to be closed:

・The termination of the service method of the servlet.
・The amount of content specified in the setContentLength method of the response
  has been written to the response.
・The sendError method is called.
・The sendRedirect method is called.
--

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



Re: Wicket and Javascript framework integration

2008-12-23 Thread T C
I understand all integrations may be different but has anyone posted a "recipe" 
for how to create an integration jQuery, i.e., what is required for creating a 
behavior? 

Thanks,

/tc





From: Jeremy Thomerson 
To: users@wicket.apache.org
Cc: fredy.wij...@gmail.com
Sent: Tuesday, December 23, 2008 6:20:18 PM
Subject: Re: Wicket and Javascript framework integration

Check out one of the many examples in Wicket Stuff, for instance, the YUI
integration:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/yui-parent/yui/

You can also see what Nino has just been working on in the past couple of
days with this:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork/

Basically, you'll just need to include the JS file (i.e. jQuery, etc) with a
ResourceReference, and then create a behavior (for example, extend
AbstractBehavior) that adds the appropriate JS code to the page to add
jQuery (or other) components / behaviors to your Wicket components.

-- 
Jeremy Thomerson
http://www.wickettraining.com

On Tue, Dec 23, 2008 at 8:15 PM, tabiul mahmood  wrote:

> Hi,
> I would like to know more about how can I go about integrating wicket with
> one of the popular javascript framework (Dojo or jQuery). We would like to
> use the standard wicket component and flavour the component with the JS. I
> want to avoid writing wicket component extension. I am aware that there is
> Ajax based Wicket component but how can I go about adding my own feature
> which might be lacking with the wicket Ajax component?
>
> If there is any sample that I can refer to that would be helpful
>
> Thanks
>
> --
> Regards,
>
> Tabiul Mahmood
>



  

Re: Dynamic Select and SelectOptions

2008-12-23 Thread tbt


homar70 wrote:
> 
> Hi,
> 
> I have trouble of finding out how to make dynamic optgroups and options
> from the select and selectoptions in wicket-extensions. The same issue is
> described in this post
> http://www.nabble.com/Select-and-SelectOptions-td11684707.html#a11695243
> 
> Any ideas?
> 
> -Spratle
> 

Hi

You could use the following classes in wicket-extensions to create an
optgroup class. I have created a static dropdown with optgroups and the
example is given below. A repeater like ListView or RepeatingView can be
used to make it dynamic 


public class OptGroup extends SelectOption
{
String label;

public OptGroup(String id, String label)
{
super(id);
this.label = label;
}

protected void onComponentTag(final ComponentTag tag)
{
checkComponentTag(tag, "optgroup");
Select select = (Select)findParent(Select.class);
if (select == null)
{
throw new WicketRuntimeException(
"OptGroup component [" +
getPath() +
"] cannot find its 
parent Select. All OptGroup components must be a
child of or below in the hierarchy of a Select component.");
}


tag.put("label", label);
}
}


public class CustomSelectOption extends SelectOption
{
public CustomSelectOption(String id,String displayValue)
{
super(id,new Model(displayValue));
}

protected void onComponentTagBody(final MarkupStream markupStream, final
ComponentTag openTag)
{
replaceComponentTagBody(markupStream, openTag, 
getModelObjectAsString());
}
}


...

OptGroup swedishOptGroup = new OptGroup("optGroup1","Swedish Cars");
SelectOption option1 = new 
CustomSelectOption("option1","Volvo");
swedishOptGroup.add(option1);
SelectOption option2 = new CustomSelectOption("option2","Saab");
swedishOptGroup.add(option2);
select.add(swedishOptGroup);

OptGroup germanOptGroup = new OptGroup("optGroup2","German 
Cars");
SelectOption option3 = new 
CustomSelectOption("option3","Mercedes");
germanOptGroup.add(option3);
SelectOption option4 = new CustomSelectOption("option4","Audi");
germanOptGroup.add(option4);
select.add(germanOptGroup);

..












-- 
View this message in context: 
http://www.nabble.com/Dynamic-Select-and-SelectOptions-tp21076798p21155450.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



About a thread safe problem of the WebApplication class

2008-12-23 Thread 加納充照
The following errors occurred when the performance of the wicket
application was tested.

[Trace of error]
[08/12/18 9:53:34:575 JST] 003e SystemOut O 2008-12-18
09:53:34,499 ERROR RequestCycle - concurrent access to
HashMap attempted by Thread[WebContainer : 6,5,main]
java.util.ConcurrentModificationException: concurrent access to
HashMap attempted by Thread[WebContainer : 6,5,main]
at java.util.HashMap.onExit(HashMap.java:217)
at java.util.HashMap.transfer(HashMap.java:514)
at java.util.HashMap.resize(HashMap.java:500)
at java.util.HashMap.addEntry(HashMap.java:800)
at java.util.HashMap.put(HashMap.java:441)
at 
org.apache.wicket.protocol.http.WebApplication.addBufferedResponse(WebApplication.java:639)
at 
org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:201)
at 
org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
・・・

[Test environment]
OS:AIX5.3 TL005 +WAS6.1.0.21
Java:JDK1.5.0
Wicket:wicket1.3.5

[Consideration And Question]
I think that it is a cause that the bufferedResponses instance of the
WebApplication class is not the thread safe.

The sessionDestroyed method and the addBufferedResponse method of the
WebApplication class might have to be controlled exclusively(When
these methods were declared in synchronized, the problem was
canceled).

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



Re: ERROR: Error while parsing response: Could not find root element

2008-12-23 Thread Jeremy Thomerson
I submitted a patch for it.  You could patch your version locally if you
wanted.  Another temporary workaround would be to create a page that simply
redirects to the homepage - then from your ajax submit, you could redirect
to that alternative page rather than directly to the homepage.  I haven't
tested that part, but think it would work.
-- 
Jeremy Thomerson
http://www.wickettraining.com


On Tue, Dec 16, 2008 at 8:55 AM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Hi!
>
> Critical bug https://issues.apache.org/jira/browse/WICKET-1916
>
> Anybody know what's causing the problem? I attached a quickstart for
> repeating the bug.
>
> **
> Martin
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket and Javascript framework integration

2008-12-23 Thread Jeremy Thomerson
Check out one of the many examples in Wicket Stuff, for instance, the YUI
integration:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/yui-parent/yui/

You can also see what Nino has just been working on in the past couple of
days with this:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork/

Basically, you'll just need to include the JS file (i.e. jQuery, etc) with a
ResourceReference, and then create a behavior (for example, extend
AbstractBehavior) that adds the appropriate JS code to the page to add
jQuery (or other) components / behaviors to your Wicket components.

-- 
Jeremy Thomerson
http://www.wickettraining.com

On Tue, Dec 23, 2008 at 8:15 PM, tabiul mahmood  wrote:

> Hi,
> I would like to know more about how can I go about integrating wicket with
> one of the popular javascript framework (Dojo or jQuery). We would like to
> use the standard wicket component and flavour the component with the JS. I
> want to avoid writing wicket component extension. I am aware that there is
> Ajax based Wicket component but how can I go about adding my own feature
> which might be lacking with the wicket Ajax component?
>
> If there is any sample that I can refer to that would be helpful
>
> Thanks
>
> --
> Regards,
>
> Tabiul Mahmood
>


Wicket and Javascript framework integration

2008-12-23 Thread tabiul mahmood
Hi,
I would like to know more about how can I go about integrating wicket with
one of the popular javascript framework (Dojo or jQuery). We would like to
use the standard wicket component and flavour the component with the JS. I
want to avoid writing wicket component extension. I am aware that there is
Ajax based Wicket component but how can I go about adding my own feature
which might be lacking with the wicket Ajax component?

If there is any sample that I can refer to that would be helpful

Thanks

-- 
Regards,

Tabiul Mahmood


Re: Wicket Ajax Table Demo

2008-12-23 Thread Ayodeji Aladejebi
please can you explain what you mean? its actually still in making...

On Tue, Dec 23, 2008 at 11:20 PM, Nino Martinez <
nino.martinez.w...@gmail.com> wrote:

> Yeah, but why not go all the way, and make the dropdowns ajax too..?
>
> Ayodeji Aladejebi wrote:
>
>> Better quality video
>>
>> http://uk.youtube.com/watch?v=QujRhlCRb9w
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions


Re: Wicket Ajax Table Demo

2008-12-23 Thread Nino Martinez

Yeah, but why not go all the way, and make the dropdowns ajax too..?

Ayodeji Aladejebi wrote:

Better quality video

http://uk.youtube.com/watch?v=QujRhlCRb9w

  



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



Re: Wicket Ajax Table Demo

2008-12-23 Thread Martijn Dashorst
Much better thanks!

Martijn

On Tue, Dec 23, 2008 at 11:49 PM, Ayodeji Aladejebi  wrote:
> Better quality video
>
> http://uk.youtube.com/watch?v=QujRhlCRb9w
>
> --
> Aladejebi Ayodeji A.,
> DabarObjects Solutions
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: use of org.wicketstuff.yui.markup.html.calendar.Calendar

2008-12-23 Thread Jeremy Thomerson
There is a Wicket core DatePicker now:
1.4:
http://svn.apache.org/repos/asf/wicket/trunk/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/
1.3:
http://svn.apache.org/repos/asf/wicket/branches/wicket-1.3.x/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/



On Tue, Dec 23, 2008 at 4:42 PM, Nino Martinez  wrote:

> Hi Peter
>
> Just use it the ordinary way add a field containing a date, and ADD the
> datepicker to it...
>
> Like this:
>
>   add(dateField = new DateTextField("date", new PropertyModel(this,
>   "date")));
>   dateField.add(new DatePicker());
>
>
>
> Peter Neubauer wrote:
>
>> Hi there,
>> since Nino left the Jayway train, I am forced to work my way through
>> wicketstuff :)
>>
>> Now, I want to pick a date, and am wondering what the current
>> incarnation of a datepicker is that works with Wicket 1.3? I found the
>> org.wicketstuff.yui.markup.html.calendar.Calendar and can insert it
>> into a page but I am not sure how to get out the chosen date in the
>> widget from the component. Are there any examples of the usage or am I
>> on the wrong track here?
>>
>> Cheers and Happy Christmas to all the Wicket folks!
>>
>> /peter
>>
>> Open Hearts, Open Minds, OpenCauses.
>>
>> GTalk:  neubauer.peter
>> Skype   peter.neubauer
>> Phone   +46 704 106975
>> LinkedIn   http://www.linkedin.com/in/neubauer
>> Twitter  http://twitter.com/peterneubauer
>>
>> http://www.neo4j.org - New Energy for Data - the Graph Database.
>> http://www.ops4j.org - New Energy for OSS Communities - Open
>> Participation Software.
>> http://www.qi4j.org- New Energy for Java - Domain Driven
>> Development.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Wicket Ajax Table Demo

2008-12-23 Thread Ayodeji Aladejebi
Better quality video

http://uk.youtube.com/watch?v=QujRhlCRb9w

-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions


Re: use of org.wicketstuff.yui.markup.html.calendar.Calendar

2008-12-23 Thread Nino Martinez

Hi Peter

Just use it the ordinary way add a field containing a date, and ADD the 
datepicker to it...


Like this:

   add(dateField = new DateTextField("date", new PropertyModel(this,
   "date")));
   dateField.add(new DatePicker());


Peter Neubauer wrote:

Hi there,
since Nino left the Jayway train, I am forced to work my way through
wicketstuff :)

Now, I want to pick a date, and am wondering what the current
incarnation of a datepicker is that works with Wicket 1.3? I found the
org.wicketstuff.yui.markup.html.calendar.Calendar and can insert it
into a page but I am not sure how to get out the chosen date in the
widget from the component. Are there any examples of the usage or am I
on the wrong track here?

Cheers and Happy Christmas to all the Wicket folks!

/peter

Open Hearts, Open Minds, OpenCauses.

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.

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

  



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



Re: [OT] Merb-Rails Merge

2008-12-23 Thread Nick Heudecker
Can you imagine if we only had one web framework?  Most of the conferences
would shut down and Java book sales would plummet.

What would Java developers argue about with only one web framework?  Other
than disputes over IDEs, AJAX frameworks, SOAP APIs, testing, SCM, and
dozens of other things where the stakes are so low that it couldn't possibly
matter, we'd have nothing to talk about. ;)


On Tue, Dec 23, 2008 at 1:54 PM, Serkan Camurcuoglu wrote:

>
> This page
> http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3
> http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3 made
> me dream about a world where all Java web frameworks merge into Wicket :)
> --
> View this message in context:
> http://www.nabble.com/-OT--Merb-Rails-Merge-tp21151511p21151511.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>


Re: [announce] Wicketstuff Artwork first release!

2008-12-23 Thread Nino Martinez

Reply inline...
Jonathan Locke wrote:

sorry for being a backseat driver here, but i've got a few more issues to
think about...
  

No problem, good with some feedback...

one problem i'm having with this design is that if you do have to chain
these
graphics together, having a varargs constructor is not really sufficient
because
there's no way to create a subclass of ArtworkCanvasBehavior that
encapsulates
a set of LAF functionality i want (because super has to be the first
statement in
a constructor)
Yeah I've given that a little thought, I need to examine it a bit 
further to make it more extensible.

... there needs to at least be a getGraphicsList()
overridable, but 
maybe you should step back and think about the design based on examining the 
actual functioning of liquid canvas


also, technically shouldn't this be LiquidCanvasBehavior

Yup, I will be renaming it.

 so people know what
they're
dealing with (or did you have some wider scope of functionality in mind?) 
  

I had some broader functionality in mind but this seems to be sufficient.

in general,
fewer new concepts like "artwork" is better i think... 
  

Yup.

although i guess Graphics is okay, it really threw me for a loop because i
immediately
assumed it was AWT/Swing.
  

Ahh couldn't find a better name for it though...


Jonathan Locke wrote:
  

i think it would be a good idea to understand this before creating an API
to it

also, i'm getting some serialization exceptions. i think you need to make
Graphics
Serializable


Nino Martinez-2 wrote:

True, good question im not even sure what the diff are I've just pushed 
it through to support what you do in js with it :) It might have 
something todo with combined operations versus single ones (eg if you 
apply more graphics at the same time it might render differently that 
otherwise)...



regards Nino

Jonathan Locke wrote:
  

this is cool, but i don't understand the concept quite.  why is this:

Graphics g=new Shadow();
g.setChainedGraphics(new Border()).setChainedGraphics(new
Gradient());
ArtworkCanvasBehavior a=new ArtworkCanvasBehavior(g,new
RoundedRect());
add(new Label("message", "If you see this message wicket is
properly
configured and running").add(a));

any different from:

add(new Label("message", "If you see this message wicket is
properly
configured and running").add(new ArtworkCanvasBehavior(new Shadow(), new
Border(), new Gradient(), new RoundedRect()));

?

could you document the reasoning behind the chainedGraphics property?


Nino Martinez-2 wrote:
  


Hi Guys

So I made it in time for x-mas :) The very first release of wicketstuff 
Artwork. Whats Wicketstuff artwork all about? If you've ever tired of 
spending numerous hours on fidling with css just to see it break in IE 
etc.. And are you having a hard time making your pages look cool? Well 
then Artwork are for you.


In this initial teaser release Artwork just contains liquid canvas and
a 
few of it's plugins.. The idea are to fully support liquid canvas 
(including excanvas for IE support) and nifty corners. Don't understand 
what im talking about? Well then go ahead and checkout the example 
project, located here :

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork-examples

You probably also have to checkout the rest of wicketstuff core in
order 
for it to build, it's a normal wicket quickstart and you can start it 
with mvn jetty:run or the start.java as usual..


-Enjoy 4 Christmas :)
Nino Martinez

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




  
  


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



  



  



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



[OT] Merb-Rails Merge

2008-12-23 Thread Serkan Camurcuoglu

This page 
http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3
http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3  made
me dream about a world where all Java web frameworks merge into Wicket :)
-- 
View this message in context: 
http://www.nabble.com/-OT--Merb-Rails-Merge-tp21151511p21151511.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [announce] Wicketstuff Artwork first release!

2008-12-23 Thread Jonathan Locke


sorry for being a backseat driver here, but i've got a few more issues to
think about...

one problem i'm having with this design is that if you do have to chain
these
graphics together, having a varargs constructor is not really sufficient
because
there's no way to create a subclass of ArtworkCanvasBehavior that
encapsulates
a set of LAF functionality i want (because super has to be the first
statement in
a constructor)... there needs to at least be a getGraphicsList()
overridable, but 
maybe you should step back and think about the design based on examining the 
actual functioning of liquid canvas

also, technically shouldn't this be LiquidCanvasBehavior so people know what
they're
dealing with (or did you have some wider scope of functionality in mind?) 
in general,
fewer new concepts like "artwork" is better i think... 

although i guess Graphics is okay, it really threw me for a loop because i
immediately
assumed it was AWT/Swing.


Jonathan Locke wrote:
> 
> 
> i think it would be a good idea to understand this before creating an API
> to it
> 
> also, i'm getting some serialization exceptions. i think you need to make
> Graphics
> Serializable
> 
> 
> Nino Martinez-2 wrote:
>> 
>> True, good question im not even sure what the diff are I've just pushed 
>> it through to support what you do in js with it :) It might have 
>> something todo with combined operations versus single ones (eg if you 
>> apply more graphics at the same time it might render differently that 
>> otherwise)...
>> 
>> 
>> regards Nino
>> 
>> Jonathan Locke wrote:
>>> this is cool, but i don't understand the concept quite.  why is this:
>>>
>>> Graphics g=new Shadow();
>>> g.setChainedGraphics(new Border()).setChainedGraphics(new
>>> Gradient());
>>> ArtworkCanvasBehavior a=new ArtworkCanvasBehavior(g,new
>>> RoundedRect());
>>> add(new Label("message", "If you see this message wicket is
>>> properly
>>> configured and running").add(a));
>>>
>>> any different from:
>>>
>>> add(new Label("message", "If you see this message wicket is
>>> properly
>>> configured and running").add(new ArtworkCanvasBehavior(new Shadow(), new
>>> Border(), new Gradient(), new RoundedRect()));
>>>
>>> ?
>>>
>>> could you document the reasoning behind the chainedGraphics property?
>>>
>>>
>>> Nino Martinez-2 wrote:
>>>   
 Hi Guys

 So I made it in time for x-mas :) The very first release of wicketstuff 
 Artwork. Whats Wicketstuff artwork all about? If you've ever tired of 
 spending numerous hours on fidling with css just to see it break in IE 
 etc.. And are you having a hard time making your pages look cool? Well 
 then Artwork are for you.

 In this initial teaser release Artwork just contains liquid canvas and
 a 
 few of it's plugins.. The idea are to fully support liquid canvas 
 (including excanvas for IE support) and nifty corners. Don't understand 
 what im talking about? Well then go ahead and checkout the example 
 project, located here :
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork-examples

 You probably also have to checkout the rest of wicketstuff core in
 order 
 for it to build, it's a normal wicket quickstart and you can start it 
 with mvn jetty:run or the start.java as usual..

 -Enjoy 4 Christmas :)
 Nino Martinez

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



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

-- 
View this message in context: 
http://www.nabble.com/-announce--Wicketstuff-Artwork-first-release%21-tp21144561p21151507.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: DropDownChoice Dynamically adding a panel

2008-12-23 Thread Peter Neubauer
I think the concept is explained here:
http://www.nabble.com/Show-hide-WebMarkupContainer-td19290460.html

HTH

/peter

Open Hearts, Open Minds, OpenCauses.

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.




On Tue, Dec 23, 2008 at 10:20 PM, wicketworker  wrote:
>
> Thanks Peter.. Yes, Lets wait and see any body has done this..
>
>
>
> Peter Neubauer-3 wrote:
>>
>> Hi Siva,
>> I am not sure but I have seen this being done with a placeholder panel
>> that you replace with the chosen one upon changing of the choice,
>> using placeholder.replaceWith(newPanel) ... maybe someone else can
>> explain it more in detail?
>>
>> /peter
>>
>> Open Hearts, Open Minds, OpenCauses.
>>
>> GTalk:  neubauer.peter
>> Skype   peter.neubauer
>> Phone   +46 704 106975
>> LinkedIn   http://www.linkedin.com/in/neubauer
>> Twitter  http://twitter.com/peterneubauer
>>
>> http://www.neo4j.org - New Energy for Data - the Graph Database.
>> http://www.ops4j.org - New Energy for OSS Communities - Open
>> Participation Software.
>> http://www.qi4j.org- New Energy for Java - Domain Driven
>> Development.
>>
>>
>>
>>
>> On Tue, Dec 23, 2008 at 9:56 PM, wicketworker 
>> wrote:
>>>
>>> Hi,
>>> I have a DropDownChoice with 5 selections, and based on the choice the
>>> user
>>> selected, i need to add a specific panel (out of 5 panels) to the page..
>>> For example : If user selection is A, add panel A
>>>   If user selection is B, add panel B
>>>
>>> I know this might sound very basic, but i am new to wicket..
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/DropDownChoice-Dynamically-adding-a-panel-tp21151136p21151136.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/DropDownChoice-Dynamically-adding-a-panel-tp21151136p21151500.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: [announce] Wicketstuff Artwork first release!

2008-12-23 Thread Jonathan Locke


i think it would be a good idea to understand this before creating an API to
it

also, i'm getting some serialization exceptions. i think you need to make
Graphics
Serializable


Nino Martinez-2 wrote:
> 
> True, good question im not even sure what the diff are I've just pushed 
> it through to support what you do in js with it :) It might have 
> something todo with combined operations versus single ones (eg if you 
> apply more graphics at the same time it might render differently that 
> otherwise)...
> 
> 
> regards Nino
> 
> Jonathan Locke wrote:
>> this is cool, but i don't understand the concept quite.  why is this:
>>
>>  Graphics g=new Shadow();
>>  g.setChainedGraphics(new Border()).setChainedGraphics(new
>> Gradient());
>>  ArtworkCanvasBehavior a=new ArtworkCanvasBehavior(g,new
>> RoundedRect());
>> add(new Label("message", "If you see this message wicket is
>> properly
>> configured and running").add(a));
>>
>> any different from:
>>
>> add(new Label("message", "If you see this message wicket is
>> properly
>> configured and running").add(new ArtworkCanvasBehavior(new Shadow(), new
>> Border(), new Gradient(), new RoundedRect()));
>>
>> ?
>>
>> could you document the reasoning behind the chainedGraphics property?
>>
>>
>> Nino Martinez-2 wrote:
>>   
>>> Hi Guys
>>>
>>> So I made it in time for x-mas :) The very first release of wicketstuff 
>>> Artwork. Whats Wicketstuff artwork all about? If you've ever tired of 
>>> spending numerous hours on fidling with css just to see it break in IE 
>>> etc.. And are you having a hard time making your pages look cool? Well 
>>> then Artwork are for you.
>>>
>>> In this initial teaser release Artwork just contains liquid canvas and a 
>>> few of it's plugins.. The idea are to fully support liquid canvas 
>>> (including excanvas for IE support) and nifty corners. Don't understand 
>>> what im talking about? Well then go ahead and checkout the example 
>>> project, located here :
>>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork-examples
>>>
>>> You probably also have to checkout the rest of wicketstuff core in order 
>>> for it to build, it's a normal wicket quickstart and you can start it 
>>> with mvn jetty:run or the start.java as usual..
>>>
>>> -Enjoy 4 Christmas :)
>>> Nino Martinez
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>> 
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-announce--Wicketstuff-Artwork-first-release%21-tp21144561p21151502.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: DropDownChoice Dynamically adding a panel

2008-12-23 Thread wicketworker

Thanks Peter.. Yes, Lets wait and see any body has done this..



Peter Neubauer-3 wrote:
> 
> Hi Siva,
> I am not sure but I have seen this being done with a placeholder panel
> that you replace with the chosen one upon changing of the choice,
> using placeholder.replaceWith(newPanel) ... maybe someone else can
> explain it more in detail?
> 
> /peter
> 
> Open Hearts, Open Minds, OpenCauses.
> 
> GTalk:  neubauer.peter
> Skype   peter.neubauer
> Phone   +46 704 106975
> LinkedIn   http://www.linkedin.com/in/neubauer
> Twitter  http://twitter.com/peterneubauer
> 
> http://www.neo4j.org - New Energy for Data - the Graph Database.
> http://www.ops4j.org - New Energy for OSS Communities - Open
> Participation Software.
> http://www.qi4j.org- New Energy for Java - Domain Driven
> Development.
> 
> 
> 
> 
> On Tue, Dec 23, 2008 at 9:56 PM, wicketworker 
> wrote:
>>
>> Hi,
>> I have a DropDownChoice with 5 selections, and based on the choice the
>> user
>> selected, i need to add a specific panel (out of 5 panels) to the page..
>> For example : If user selection is A, add panel A
>>   If user selection is B, add panel B
>>
>> I know this might sound very basic, but i am new to wicket..
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/DropDownChoice-Dynamically-adding-a-panel-tp21151136p21151136.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-Dynamically-adding-a-panel-tp21151136p21151500.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: DropDownChoice Dynamically adding a panel

2008-12-23 Thread Peter Neubauer
Hi Siva,
I am not sure but I have seen this being done with a placeholder panel
that you replace with the chosen one upon changing of the choice,
using placeholder.replaceWith(newPanel) ... maybe someone else can
explain it more in detail?

/peter

Open Hearts, Open Minds, OpenCauses.

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.




On Tue, Dec 23, 2008 at 9:56 PM, wicketworker  wrote:
>
> Hi,
> I have a DropDownChoice with 5 selections, and based on the choice the user
> selected, i need to add a specific panel (out of 5 panels) to the page..
> For example : If user selection is A, add panel A
>   If user selection is B, add panel B
>
> I know this might sound very basic, but i am new to wicket..
>
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/DropDownChoice-Dynamically-adding-a-panel-tp21151136p21151136.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



use of org.wicketstuff.yui.markup.html.calendar.Calendar

2008-12-23 Thread Peter Neubauer
Hi there,
since Nino left the Jayway train, I am forced to work my way through
wicketstuff :)

Now, I want to pick a date, and am wondering what the current
incarnation of a datepicker is that works with Wicket 1.3? I found the
org.wicketstuff.yui.markup.html.calendar.Calendar and can insert it
into a page but I am not sure how to get out the chosen date in the
widget from the component. Are there any examples of the usage or am I
on the wrong track here?

Cheers and Happy Christmas to all the Wicket folks!

/peter

Open Hearts, Open Minds, OpenCauses.

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.

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



DropDownChoice Dynamically adding a panel

2008-12-23 Thread wicketworker

Hi,
I have a DropDownChoice with 5 selections, and based on the choice the user
selected, i need to add a specific panel (out of 5 panels) to the page..
For example : If user selection is A, add panel A
   If user selection is B, add panel B

I know this might sound very basic, but i am new to wicket.. 




-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-Dynamically-adding-a-panel-tp21151136p21151136.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [announce] Wicketstuff Artwork first release!

2008-12-23 Thread Nino Martinez
True, good question im not even sure what the diff are I've just pushed 
it through to support what you do in js with it :) It might have 
something todo with combined operations versus single ones (eg if you 
apply more graphics at the same time it might render differently that 
otherwise)...



regards Nino

Jonathan Locke wrote:

this is cool, but i don't understand the concept quite.  why is this:

Graphics g=new Shadow();
g.setChainedGraphics(new Border()).setChainedGraphics(new Gradient());
ArtworkCanvasBehavior a=new ArtworkCanvasBehavior(g,new RoundedRect());
add(new Label("message", "If you see this message wicket is properly
configured and running").add(a));

any different from:

add(new Label("message", "If you see this message wicket is properly
configured and running").add(new ArtworkCanvasBehavior(new Shadow(), new
Border(), new Gradient(), new RoundedRect()));

?

could you document the reasoning behind the chainedGraphics property?


Nino Martinez-2 wrote:
  

Hi Guys

So I made it in time for x-mas :) The very first release of wicketstuff 
Artwork. Whats Wicketstuff artwork all about? If you've ever tired of 
spending numerous hours on fidling with css just to see it break in IE 
etc.. And are you having a hard time making your pages look cool? Well 
then Artwork are for you.


In this initial teaser release Artwork just contains liquid canvas and a 
few of it's plugins.. The idea are to fully support liquid canvas 
(including excanvas for IE support) and nifty corners. Don't understand 
what im talking about? Well then go ahead and checkout the example 
project, located here :

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork-examples

You probably also have to checkout the rest of wicketstuff core in order 
for it to build, it's a normal wicket quickstart and you can start it 
with mvn jetty:run or the start.java as usual..


-Enjoy 4 Christmas :)
Nino Martinez

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






  



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



Re: [announce] Wicketstuff Artwork first release!

2008-12-23 Thread Nino Martinez
Yup, I havent gotten around to putting in the link to excanvas(the thing 
for IE) yet..


Jeremy Thomerson wrote:
The examples give me an error in IE (works in Firefox).  See attached 
screenshot.


On Tue, Dec 23, 2008 at 7:30 AM, Nino Martinez 
mailto:nino.martinez.w...@gmail.com>> 
wrote:


Hi Guys

So I made it in time for x-mas :) The very first release of
wicketstuff Artwork. Whats Wicketstuff artwork all about? If
you've ever tired of spending numerous hours on fidling with css
just to see it break in IE etc.. And are you having a hard time
making your pages look cool? Well then Artwork are for you.

In this initial teaser release Artwork just contains liquid canvas
and a few of it's plugins.. The idea are to fully support liquid
canvas (including excanvas for IE support) and nifty corners.
Don't understand what im talking about? Well then go ahead and
checkout the example project, located here :

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork-examples

You probably also have to checkout the rest of wicketstuff core in
order for it to build, it's a normal wicket quickstart and you can
start it with mvn jetty:run or the start.java as usual..

-Enjoy 4 Christmas :)
Nino Martinez

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

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





--
Jeremy Thomerson
http://www.wickettraining.com






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



Re: [announce] Wicketstuff Artwork first release!

2008-12-23 Thread Jonathan Locke


this is cool, but i don't understand the concept quite.  why is this:

Graphics g=new Shadow();
g.setChainedGraphics(new Border()).setChainedGraphics(new Gradient());
ArtworkCanvasBehavior a=new ArtworkCanvasBehavior(g,new RoundedRect());
add(new Label("message", "If you see this message wicket is properly
configured and running").add(a));

any different from:

add(new Label("message", "If you see this message wicket is properly
configured and running").add(new ArtworkCanvasBehavior(new Shadow(), new
Border(), new Gradient(), new RoundedRect()));

?

could you document the reasoning behind the chainedGraphics property?


Nino Martinez-2 wrote:
> 
> Hi Guys
> 
> So I made it in time for x-mas :) The very first release of wicketstuff 
> Artwork. Whats Wicketstuff artwork all about? If you've ever tired of 
> spending numerous hours on fidling with css just to see it break in IE 
> etc.. And are you having a hard time making your pages look cool? Well 
> then Artwork are for you.
> 
> In this initial teaser release Artwork just contains liquid canvas and a 
> few of it's plugins.. The idea are to fully support liquid canvas 
> (including excanvas for IE support) and nifty corners. Don't understand 
> what im talking about? Well then go ahead and checkout the example 
> project, located here :
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork-examples
> 
> You probably also have to checkout the rest of wicketstuff core in order 
> for it to build, it's a normal wicket quickstart and you can start it 
> with mvn jetty:run or the start.java as usual..
> 
> -Enjoy 4 Christmas :)
> Nino Martinez
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-announce--Wicketstuff-Artwork-first-release%21-tp21144561p21150415.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: debugging

2008-12-23 Thread Jason Lea

Eclipse WTP+Tomcat is really great :)

The other setting I think you need is in the Server view, double click 
the tomcat server and use 'Serve modules without publishing' so it 
doesn't have to restart the server for changes (hot code/markup).
For me it is nice to be able develop/test on the same server version the 
application will be deployed on.


John Krasnay wrote:

I use Tomcat via the Eclipse WTP. Here are some quick instructions if
you're using Maven:

- add the wtpversion and wtpContextName elements to your
  maven-eclipse-plugin config

  
org.apache.maven.plugins
maven-eclipse-plugin

  true
  true
  2.0
  oneid-web

  

- regenerate your Eclipse project: mvn eclipse:eclipse

- in Eclipse, refresh your project. You should see a little globe in the
  top right corner of your project icon.

- open the Servers view, right click it, and add a Tomcat server. You'll
  have to tell it about your Tomcat install directory.

- right-click your newly created server, select Add and Remove
  Projects..., and add your project to the server.

- start the server by clicking the little bug icon in the Servers view.

I've heard others on this list favour Jetty over Tomcat for reasons of
startup time and hot code replace, but I've not had either problem with
Tomcat. It starts fast (~10 seconds for my app, most of which is
starting up Spring and Hibernate), and hot code replace works unless I'm
changing the "shape" of a class (e.g. adding fields or methods).

jk

On Tue, Dec 23, 2008 at 11:34:41AM +0100, Björn Tietjens wrote:
  

Hi,

I am developing a webapp with wicket on eclipse, deploying as war, using 
a local tomcat for testing.

What is the best/easiest way to debug my app with eclipse?
How can I deploy/start the webapp from within eclipse or how can I  
attach eclipse to tomcat in order to debug my code?


Thanx for your help.
Cheers Björn

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




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


  


--
Jason Lea




Re: Case sensitivity and PackageRequestTargetUrlCodingStrategy

2008-12-23 Thread Jeremy Thomerson
I committed it.  Thanks.

On Tue, Dec 16, 2008 at 9:33 PM, Matthew Hanlon  wrote:

> No, I do not have commit rights.  I have created an issue on JIRA and
> attached the project with the classes added.
> http://wicketstuff.org/jira/browse/WSMINIS-8
>
> Regards,
> Matthew.
>
> On Tue, Dec 16, 2008 at 4:08 PM, Jeremy Thomerson <
> jer...@wickettraining.com
>  > wrote:
>
> > Do you have commit rights to wicketstuff?  If you do, just commit it.  If
> > not, you could ask for it or create a patch on the JIRA:
> > http://wicketstuff.org/jira/secure/BrowseProject.jspa?id=10020
> >
> > If you need help, let us know.
> >
> >
> >
> > On Tue, Dec 16, 2008 at 3:37 PM, Matthew Hanlon 
> > wrote:
> >
> > > I just realized that gmail wasn't replying to the list.  Sorry.  For
> > > posterity...
> > >
> > > On Tue, Dec 16, 2008 at 3:34 PM, Matthew Hanlon 
> > > wrote:
> > >
> > > > Below is the updated CaseInsensitiveClassResolver I implemented per
> > your
> > > > suggestions.  It uses MatchingResources from wicketstuff annotation.
> >  It
> > > > scans packages on-demand and caches the results for future lookup.
>  It
> > > seems
> > > > fairly fast, and due to the cache it doesn't have to re-scan the
> > > classpath.
> > > >  Also below is my
> CaseInsensitivePackageRequestTargetUrlCodingStrategy
> > > > (Gasp!  What an awfully long name.).
> > > > If you think it's worthwhile, I'd love to contribute it to
> > > > wicketstuff-minis.  How would one got about doing that?
> > > >
> > > > public class CaseInsensitiveClassResolver implements IClassResolver {
> > > >
> > > > private static final Logger logger =
> > > > LoggerFactory.getLogger(CaseInsensitiveClassResolver.class);
> > > >  private DefaultClassResolver resolver = new DefaultClassResolver();
> > > >  public Iterator getResources(String name) {
> > > >  return resolver.getResources(name);
> > > > }
> > > >  private Map>> cache = new
> HashMap > > > Map>>();
> > > >  public Class resolveClass(String classname) throws
> > > > ClassNotFoundException {
> > > > Class clazz = null;
> > > >  try {
> > > > clazz = resolver.resolveClass(classname);
> > > > } catch (ClassNotFoundException e1) {
> > > >  clazz = resolveClassCaseInsensitive(classname);
> > > > } catch (NoClassDefFoundError e2) {
> > > >  clazz = resolveClassCaseInsensitive(classname);
> > > > }
> > > > if (clazz == null) {
> > > >  throw new ClassNotFoundException("Unable to resolve class for name "
> +
> > > > classname);
> > > > }
> > > >  return clazz;
> > > > }
> > > >  public Class resolveClassCaseInsensitive(String classname) {
> > > > if (logger.isDebugEnabled()) {
> > > >  logger.debug("Class not found for " + classname + ".  Trying to look
> > up
> > > > case-insensitive.");
> > > > }
> > > >  String packageName = classname.substring(0,
> > classname.lastIndexOf('.'));
> > > >  if (! cache.containsKey(packageName)) {
> > > > cache.put(packageName, scan(getPatternForPackage(packageName)));
> > > >  }
> > > >  return cache.get(packageName).get(classname.toLowerCase());
> > > >  }
> > > >  /**
> > > >  * Get the Spring search pattern given a package name or part of
> a
> > > > package name
> > > >  * @param packageName a package name
> > > >  * @return a Spring search pattern for the given package
> > > >  */
> > > > public String getPatternForPackage(String packageName)
> > > > {
> > > > if (packageName == null) packageName = "";
> > > > packageName = packageName.replace('.', '/');
> > > > if (!packageName.endsWith("/"))
> > > > {
> > > > packageName += '/';
> > > > }
> > > >
> > > > return "classpath*:" + packageName + "**/*.class";
> > > > }
> > > >
> > > > /**
> > > >  *
> > > >  * @param pattern
> > > >  */
> > > > private Map> scan(final String pattern) {
> > > >  Map> classMap = new HashMap Class>();
> > > >  MatchingResources resources = new MatchingResources(pattern);
> > > > MetadataReaderFactory f = new SimpleMetadataReaderFactory();
> > > > for (Resource r : resources.getAllMatches()) {
> > > >  MetadataReader meta = null;
> > > > try
> > > > {
> > > > meta = f.getMetadataReader(r);
> > > > }
> > > > catch (IOException e)
> > > > {
> > > > throw new RuntimeException("Unable to get
> > MetadataReader
> > > > for " + r, e);
> > > > }
> > > > try {
> > > > ClassMetadata cmd = meta.getClassMetadata();
> > > > String classname = cmd.getClassName();
> > > > try {
> > > >  classMap.put(classname.toLowerCase(),
> > > > getClass().getClassLoader().loadClass(classname));
> > > >  } catch (ClassNotFoundException e) {
> > > > logger.error("Error loading class for name " + classname);
> > > >  }
> > > > } catch (Throwable e) {
> > > > logger.error("Unknown Error.", e);
> > > > }
> > > > }
> > > > retur

Re: Wicket and Dynamic Tables Demo

2008-12-23 Thread Ayodeji Aladejebi
thanks..i hated the video myself.

On Tue, Dec 23, 2008 at 5:57 PM, Martijn Dashorst <
martijn.dasho...@gmail.com> wrote:

> This one made me sea sick. Can't you use a screen cast tool instead?
> See http://www.codinghorror.com/blog/archives/000721.html for a list
> of tools for windows.
>
> Martijn
>
> 2008/12/23 Ayodeji Aladejebi :
> > http://uk.youtube.com/watch?v=6JrcFXBffLY
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: [announce] Wicketstuff Artwork first release!

2008-12-23 Thread Jeremy Thomerson
The examples give me an error in IE (works in Firefox).  See attached
screenshot.

On Tue, Dec 23, 2008 at 7:30 AM, Nino Martinez  wrote:

> Hi Guys
>
> So I made it in time for x-mas :) The very first release of wicketstuff
> Artwork. Whats Wicketstuff artwork all about? If you've ever tired of
> spending numerous hours on fidling with css just to see it break in IE etc..
> And are you having a hard time making your pages look cool? Well then
> Artwork are for you.
>
> In this initial teaser release Artwork just contains liquid canvas and a
> few of it's plugins.. The idea are to fully support liquid canvas (including
> excanvas for IE support) and nifty corners. Don't understand what im talking
> about? Well then go ahead and checkout the example project, located here :
>
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork-examples
>
> You probably also have to checkout the rest of wicketstuff core in order
> for it to build, it's a normal wicket quickstart and you can start it with
> mvn jetty:run or the start.java as usual..
>
> -Enjoy 4 Christmas :)
> Nino Martinez
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

problem with simple wicket application (http error 403)

2008-12-23 Thread wgap

I am having trouble getting a simple wicket application to work.

The problem is: when I try to test the deployed app I get error 403.

I am trying to get the simple wicket application described at
   
http://nikojava.wordpress.com/2008/10/27/wicket-guide-for-jdeveloper-11g/
working, using jdeveloper 10 and wicket 1.3.5.

I have deployed it to Oracle Application Server 10.1.3.4.

I have looked through the log files I could find but have so far
been unable to locate anything about this.  Our system admin
is not in right now, but may be able to locate the right log file
when he is back.

I have created the 2 java files and 1 html and the web.xml as described.
I build an .ear file, containing the webapp.war file and application.xml.
The .war file (webapp.war) seems to have all the files in the right places:

WEB-INF/classes/pages/Hello.class
WEB-INF/classes/pages/Hello.html
WEB-INF/classes/wicketfun/MyApplication.class
WEB-INF/lib/slf4j-api-1.5.6.jar
WEB-INF/lib/slf4j-simple-1.5.6.jar
WEB-INF/lib/wicket-1.3.5.jar
WEB-INF/web.xml

Below is the content of the web.xml:


http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee";>
Empty web.xml file for Web Application

35


html
text/html


txt
text/plain


WicketApplication
org.apache.wicket.protocol.http.WicketFilter

applicationClassName
wicketfun.MyApplication



WicketApplication
/*



Thanks for any advice anyone has. 
-- 
View this message in context: 
http://www.nabble.com/problem-with-simple-wicket-application-%28http-error-403%29-tp21149455p21149455.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: as Component

2008-12-23 Thread Nino Martinez

Or a label


James Carman wrote:

You can use a WebMarkupContainer.

On Tue, Dec 23, 2008 at 12:37 PM, HITECH79  wrote:
  

Hallo,

is there any way to create a  as Wicket Component?

Thanks
HITECH79
--
View this message in context: 
http://www.nabble.com/%3CHR%3E-as-Component-tp21148370p21148370.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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





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

  



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



Re: Wicket and Dynamic Tables Demo

2008-12-23 Thread Martijn Dashorst
This one made me sea sick. Can't you use a screen cast tool instead?
See http://www.codinghorror.com/blog/archives/000721.html for a list
of tools for windows.

Martijn

2008/12/23 Ayodeji Aladejebi :
> http://uk.youtube.com/watch?v=6JrcFXBffLY
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: as Component

2008-12-23 Thread James Carman
You can use a WebMarkupContainer.

On Tue, Dec 23, 2008 at 12:37 PM, HITECH79  wrote:
>
> Hallo,
>
> is there any way to create a  as Wicket Component?
>
> Thanks
> HITECH79
> --
> View this message in context: 
> http://www.nabble.com/%3CHR%3E-as-Component-tp21148370p21148370.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



SignInPanel of wicket-auth-roles (1.4-rc1)

2008-12-23 Thread Adriano dos Santos Fernandes

Hi!

Different from the SignInPanel of the examples, the wicket-auth-roles 
component doesn't do setType(String.class) for username and password. 
That causes warnings in the log about unrecognized model type.


Should not the setType be there?


Adriano


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



as Component

2008-12-23 Thread HITECH79

Hallo,

is there any way to create a  as Wicket Component?

Thanks
HITECH79
-- 
View this message in context: 
http://www.nabble.com/%3CHR%3E-as-Component-tp21148370p21148370.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Wicket and Dynamic Tables Demo

2008-12-23 Thread Ayodeji Aladejebi
http://uk.youtube.com/watch?v=6JrcFXBffLY


Re: debugging

2008-12-23 Thread Michael O'Cleirigh

Hi Björn,

If your project is configured to use maven then you can use the 
m2eclipse plugin to invoke the jetty:run target which will run in the 
debugging perspective.


http://m2eclipse.codehaus.org/

For me I get dynamic code replacement, markup file changes, etc handled 
without needing to restart the target.


Mike



I am developing a webapp with wicket on eclipse, deploying as war, 
using a local tomcat for testing.

What is the best/easiest way to debug my app with eclipse?
How can I deploy/start the webapp from within eclipse or how can I  
attach eclipse to tomcat in order to debug my code?


Thanx for your help.
Cheers Björn

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




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



Re: Applying Styles Through Java

2008-12-23 Thread Ernesto Reinaldo Barreiro
I think this might depend on your use case:
1-If your are creating a component and you want it to tune to  "look"
different on different "parts" of your pages it might be useful to have
something like:

component.add(new SimpleAttributeModifier("class", getMyStyleClassName());

So that you can change it at Java code.

2- If the style is going to be the same everywhere why bother in
parameterizing it at Java level?

Best

Ernesto
On Tue, Dec 23, 2008 at 3:54 PM, walnutmon wrote:

>
> I have found very little in my wicket books, and on this forum in terms of
> adding styles to components through java.  Is this because it's outside of
> the scope of wicket?
>
> As an example.  If I have a panel, and I want all of those panels to have a
> style class "someComponentClass", is it better to keep that information in
> the HTML?  Or can I assign that behavior through the .java code?
>
> Also, as an aside, where can I find wicket jars for the 1.3.5 release with
> javadocs contained so that I can see the javadocs from netbeans?  I have
> had
> a heck of a time without them.
>
> best,
> justin
> --
> View this message in context:
> http://www.nabble.com/Applying-Styles-Through-Java-tp21145758p21145758.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Applying Styles Through Java

2008-12-23 Thread dtoffe


walnutmon wrote:
> 
> Also, as an aside, where can I find wicket jars for the 1.3.5 release with
> javadocs contained so that I can see the javadocs from netbeans?  I have
> had a heck of a time without them.
> 
> 

http://repo2.maven.org/maven2/org/apache/wicket/wicket/

At the moment I believe you will not find the release with the javadocs
included.
In this list it is often suggested to get the javadocs jar via Maven,
but if you use Netbeans and your projects are not Maven based, you can
download the wicket release, add the javadoc jar downloaded from this maven
repo, and then configure as a Library, setting jars, sources and javadocs
path with the Library Manager.

hth,

Daniel


-- 
View this message in context: 
http://www.nabble.com/Applying-Styles-Through-Java-tp21145758p21146945.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Applying Styles Through Java

2008-12-23 Thread Steve Swinsburg
You can do it in either but since its best to separate the display  
from the logic, keep it in the HTML. Exception is if you need to  
dynamically change the class etc.


HTML:


stuff



Java:

look at AttributeAppender
AttributeModifier that appends the given value, rather than replace  
it. This is especially useful for adding CSS classes to markup  
elements, or adding JavaScript snippets to existing element handlers.


 onmouseover="doSomething()">


can be modified with these AttributeAppenders:
 link.add(new AttributeAppender("class", new Model("hot"), " "));
 link.add(new AttributeAppender("onmouseover", new  
Model("foo();return false;"), ";"));


this will result in the following markup:
 onmouseover="doSomething();foo();return false;">




cheers,
Steve






On 23 Dec 2008, at 14:54, walnutmon wrote:



I have found very little in my wicket books, and on this forum in  
terms of
adding styles to components through java.  Is this because it's  
outside of

the scope of wicket?

As an example.  If I have a panel, and I want all of those panels to  
have a
style class "someComponentClass", is it better to keep that  
information in

the HTML?  Or can I assign that behavior through the .java code?

Also, as an aside, where can I find wicket jars for the 1.3.5  
release with
javadocs contained so that I can see the javadocs from netbeans?  I  
have had

a heck of a time without them.

best,
justin
--
View this message in context: 
http://www.nabble.com/Applying-Styles-Through-Java-tp21145758p21145758.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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





smime.p7s
Description: S/MIME cryptographic signature


RE: Applying Styles Through Java

2008-12-23 Thread Stefan Lindner
It depends :-) You may control the attributes of an element (e.g. attribute 
"class") with

Component.add(new simpleAttributeModifier("class", " 
someComponentClass");

Stefan

-Ursprüngliche Nachricht-
Von: walnutmon [mailto:justin.m.boy...@gmail.com] 
Gesendet: Dienstag, 23. Dezember 2008 15:54
An: users@wicket.apache.org
Betreff: Applying Styles Through Java


I have found very little in my wicket books, and on this forum in terms of
adding styles to components through java.  Is this because it's outside of
the scope of wicket? 

As an example.  If I have a panel, and I want all of those panels to have a
style class "someComponentClass", is it better to keep that information in
the HTML?  Or can I assign that behavior through the .java code?  

Also, as an aside, where can I find wicket jars for the 1.3.5 release with
javadocs contained so that I can see the javadocs from netbeans?  I have had
a heck of a time without them.

best, 
justin
-- 
View this message in context: 
http://www.nabble.com/Applying-Styles-Through-Java-tp21145758p21145758.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


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



Applying Styles Through Java

2008-12-23 Thread walnutmon

I have found very little in my wicket books, and on this forum in terms of
adding styles to components through java.  Is this because it's outside of
the scope of wicket? 

As an example.  If I have a panel, and I want all of those panels to have a
style class "someComponentClass", is it better to keep that information in
the HTML?  Or can I assign that behavior through the .java code?  

Also, as an aside, where can I find wicket jars for the 1.3.5 release with
javadocs contained so that I can see the javadocs from netbeans?  I have had
a heck of a time without them.

best, 
justin
-- 
View this message in context: 
http://www.nabble.com/Applying-Styles-Through-Java-tp21145758p21145758.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: debugging

2008-12-23 Thread John Krasnay
I use Tomcat via the Eclipse WTP. Here are some quick instructions if
you're using Maven:

- add the wtpversion and wtpContextName elements to your
  maven-eclipse-plugin config

  
org.apache.maven.plugins
maven-eclipse-plugin

  true
  true
  2.0
  oneid-web

  

- regenerate your Eclipse project: mvn eclipse:eclipse

- in Eclipse, refresh your project. You should see a little globe in the
  top right corner of your project icon.

- open the Servers view, right click it, and add a Tomcat server. You'll
  have to tell it about your Tomcat install directory.

- right-click your newly created server, select Add and Remove
  Projects..., and add your project to the server.

- start the server by clicking the little bug icon in the Servers view.

I've heard others on this list favour Jetty over Tomcat for reasons of
startup time and hot code replace, but I've not had either problem with
Tomcat. It starts fast (~10 seconds for my app, most of which is
starting up Spring and Hibernate), and hot code replace works unless I'm
changing the "shape" of a class (e.g. adding fields or methods).

jk

On Tue, Dec 23, 2008 at 11:34:41AM +0100, Björn Tietjens wrote:
> Hi,
> 
> I am developing a webapp with wicket on eclipse, deploying as war, using 
> a local tomcat for testing.
> What is the best/easiest way to debug my app with eclipse?
> How can I deploy/start the webapp from within eclipse or how can I  
> attach eclipse to tomcat in order to debug my code?
> 
> Thanx for your help.
> Cheers Björn
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

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



Re: code for DataGrid with vertical scrolling

2008-12-23 Thread Stefan Fußenegger

I once started working on a component that used vertical scrolling. It was
based on a GrowableListView (based on
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/),

GrowableListView.java: http://pastie.org/345504 
GrowableListView.html: http://pastie.org/345507

Might not be the cleanest or best code ever, but it used to work - if I
remember correctly. This could be used to add columns to a single-row-table,
where each table cell contains a ListView of items

To use a table with the above code, call 

setItemTagName("td");
setContainerTagName("tr");

This table could than be scrolled with JS, e.g. with Dojo's
dojox.fx.smoothScroll(). That's the part I didn't finish so far, though :)
You'd probably be able to adapt the JS code found here:
http://www.songtexte.com/songtext/johnny-cash/folsom-prison-blues-3d41577.html
(see the "Videos" box in the right column) 




miro wrote:
> 
> please point me for the code with data grid vertical scrolling component.
> 
> 


-
---
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
-- 
View this message in context: 
http://www.nabble.com/code-for-DataGrid-with-vertical-scrolling-tp21112343p21144910.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: debugging

2008-12-23 Thread Martijn Dashorst
Use the jetty start class instead. There's little difference between
tomcat/jetty when you're using Wicket as a deployment platform, but
the development experience is much more different.

Martijn

On Tue, Dec 23, 2008 at 11:34 AM, Björn Tietjens  wrote:
> Hi,
>
> I am developing a webapp with wicket on eclipse, deploying as war, using a
> local tomcat for testing.
> What is the best/easiest way to debug my app with eclipse?
> How can I deploy/start the webapp from within eclipse or how can I  attach
> eclipse to tomcat in order to debug my code?
>
> Thanx for your help.
> Cheers Björn
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



[announce] Wicketstuff Artwork first release!

2008-12-23 Thread Nino Martinez

Hi Guys

So I made it in time for x-mas :) The very first release of wicketstuff 
Artwork. Whats Wicketstuff artwork all about? If you've ever tired of 
spending numerous hours on fidling with css just to see it break in IE 
etc.. And are you having a hard time making your pages look cool? Well 
then Artwork are for you.


In this initial teaser release Artwork just contains liquid canvas and a 
few of it's plugins.. The idea are to fully support liquid canvas 
(including excanvas for IE support) and nifty corners. Don't understand 
what im talking about? Well then go ahead and checkout the example 
project, located here :

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork-examples

You probably also have to checkout the rest of wicketstuff core in order 
for it to build, it's a normal wicket quickstart and you can start it 
with mvn jetty:run or the start.java as usual..


-Enjoy 4 Christmas :)
Nino Martinez

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



Re: Dojo 1.1 integration available from wicketstuff

2008-12-23 Thread Stefan Fußenegger

Hi Emanuele,

I don't plan to support additional components myself - especially not
problems that seem to be caused by Dojo only. wicketstuff-dojo-1.1 is mainly
meant to ease the integration of Dojo into Wicket (i.e. to provide the
infrastructure like custom builds, packaging as jar files, configuration of
Dojo as part of a Wicket application, mounting resources and the like). In
the future, there might be more and more components available out of the
box. However, at the moment I don't have plans - or time - to add more
components than those already included (animations, toaster widget, drag and
drop and cometd support)

If you've built a Wicket component based on wicketstuff-dojo-1.1, you're
welcome to contribute your code. If you want to contribute but don't know
how, I'd be happy to get you started.

Merry Christmas, Stefan



Emanuele Gesuato-2 wrote:
> 
> Stefan Fußenegger wrote:
>> There's now a little bit of documentation online:
>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-dojo-1.1
>> 
>> Cheers, Stefan
>> 
> 
> Hi,
> 
> First of all, good job.
> 
> Is there any plan to support the dojo context menu ?  :-)
> 
> We are using it but we've got several warnings with some deprecation 
> calls on the html document in development that are quite annoying.
> Also if i have different context menu in the same page and if these 
> context menu has submenus, the submenus are sharing the same instance of 
> the content component.
> 
> Example:
> If i have menuA and menuB in two tables, tableA and tableB. If i right 
> click on menuA or menuB in the java code i see that the referenced 
> component is always on tableB. This only happens in the voices of the 
> menu that are in a submenu.
> 
> 
> 
> Thanks for any help,
> Emanuele
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 


-
---
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
-- 
View this message in context: 
http://www.nabble.com/Dojo-1.1-integration-available-from-wicketstuff-tp20625220p21144111.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Phonebook example

2008-12-23 Thread Peter Karich
Hi,

I freshly checked out the phonebook example from svn.
But I have 2 problems.
1. I have to add the following dep:

org.springframework
spring
2.0.8

Otherwise it wouldn't find some ibatis and ContextLoaderListener classes.
(BTW: if I only want hibernate how can I safely remove the ibatis deps?)

2. I cannot find the referenced class 
wicket.contrib.phonebook.web.HibernatePhonebookApplication
in subversion

Any hints?

Regards,
Peter.




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



Re: debugging

2008-12-23 Thread Azzeddine Daddah
Start tomcat using catalina jpda start :)

   1. Open the startup script in (your_tomcat_home)/bin (WIN: startup.bat,
   UNIX: startup.sh)
   2. Add the following lines at the first blank line in the file
   WINDOWS:
   set JPDA_ADDRESS=8000
   set JPDA_TRANSPORT=dt_socket

   UNIX:
   export JPDA_ADDRESS=8000
   export JPDA_TRANSPORT=dt_socket
   3. Change the execute line at the end to include *jpda start
   *WINDOWS:
   call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%

   UNIX:
   exec "$PRGDIR"/"$EXECUTABLE" jpda start "$@"
   4. Deploy your application as you normally do
   5. Add a new Remote Java Application in your Debug Configurations in
   Eclipse and click on "Debug"

Cheers
Hbiloo


On Tue, Dec 23, 2008 at 11:37 AM, Dipu  wrote:

> use the Sysdeo Eclipse Tomcat Launcher plugin
>
> http://www.eclipsetotale.com/tomcatPlugin.html
>
> Cheers
> Dipu
>
> On Tue, Dec 23, 2008 at 10:34 AM, Björn Tietjens  wrote:
> >
> > Hi,
> >
> > I am developing a webapp with wicket on eclipse, deploying as war, using
> a local tomcat for testing.
> > What is the best/easiest way to debug my app with eclipse?
> > How can I deploy/start the webapp from within eclipse or how can I
>  attach eclipse to tomcat in order to debug my code?
> >
> > Thanx for your help.
> > Cheers Björn
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: debugging

2008-12-23 Thread Dipu
use the Sysdeo Eclipse Tomcat Launcher plugin

http://www.eclipsetotale.com/tomcatPlugin.html

Cheers
Dipu

On Tue, Dec 23, 2008 at 10:34 AM, Björn Tietjens  wrote:
>
> Hi,
>
> I am developing a webapp with wicket on eclipse, deploying as war, using a 
> local tomcat for testing.
> What is the best/easiest way to debug my app with eclipse?
> How can I deploy/start the webapp from within eclipse or how can I  attach 
> eclipse to tomcat in order to debug my code?
>
> Thanx for your help.
> Cheers Björn
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

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



debugging

2008-12-23 Thread Björn Tietjens

Hi,

I am developing a webapp with wicket on eclipse, deploying as war, using 
a local tomcat for testing.

What is the best/easiest way to debug my app with eclipse?
How can I deploy/start the webapp from within eclipse or how can I  
attach eclipse to tomcat in order to debug my code?


Thanx for your help.
Cheers Björn

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



unit test for dropdownchoice with ajax

2008-12-23 Thread tbt

Hi

I have coded two dropdown boxes similar to the example provided at 
http://http://www.wicket-library.com/wicket-examples/ajax/choice.1

The hotel dropdown is populated once a country is selected via ajax. This
works fine and now i am writing a unit test for it. The code is as follows

WicketTester wicketTester = getWicketTester();
wicketTester.startPage(SearchHotelsPage.class);
FormTester formTester =
wicketTester.newFormTester("searchHotelsForm",false);

formTester.select("countryDropDown", 6);
DropDownChoice countryDropDownChoice = (DropDownChoice)
wicketTester.getComponentFromLastRenderedPage("searchHotelsForm:countryDropDown");
assertEquals(countryDropDownChoice.getChoices().size(), 41);



wicketTester.executeAjaxEvent("searchHotelsForm:countryDropDown",
"onchange");

wicketTester.assertComponentOnAjaxResponse("searchHotelsForm:hotelDropDown");
formTester.select("hotelDropDown", 12);
formTester.submit();
wicketTester.assertRenderedPage(EditHotelsPage.class);


but the following line fails the unit test
wicketTester.assertRenderedPage(EditHotelsPage.class);

the stack trace is as follows

junit.framework.AssertionFailedError: expected: but
was:
at
org.apache.wicket.util.tester.WicketTester.assertResult(WicketTester.java:575)
at
org.apache.wicket.util.tester.WicketTester.assertRenderedPage(WicketTester.java:522)
at
ogn.forms.SearchHotelsFormTest.testAjaxDropdownComponent(SearchHotelsFormTest.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

Why does the page get rendered to the HomePage when the form is submitted.
Am I testing the ajax dropdown component correctly. Please help.

Thanks
-- 
View this message in context: 
http://www.nabble.com/unit-test-for-dropdownchoice-with-ajax-tp21141772p21141772.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Multi-tap operations in Wicket

2008-12-23 Thread HHB

Seam and Wicket shouldn't compared.
Seam is an integration framework (Hibernate, EJB3, JSF, jBPM, Quartz ...) ,
Wicket is a web framework.
My current favorite frameworks are: Seam, Wicket and GWT
Second rank: Tapestry, Grails


Erik van Oosten wrote:
> 
> Glad that is out of the way :)
> 
> Wicket and Seam are frequently compared. But I think it is not a 
> fair/possible comparison. We might as well compare TestNG with Mockito, 
> both are about testing but in an entirely different league.
> 
> Seam's goal (as far as my humble knowledge goes) is targeted at 
> combining a variety of frameworks (in particular EJB3 and JSF). Focus is 
> on managing transactions and passing data around by storing and 
> retrieving it from an array of (untyped) contexts. (Please forgive me if 
> I am completely wrong.)
> 
> Wicket's goal is to provide a natural OO environment to program a html 
> user interface. (Reusable UI components anyone?) Passing data around is 
> the responsibility of components but is typically done with (fully 
> typed) models. There is no need for contexts to keep state as the entire 
> components are kept as state. This is done by storing complete page 
> component hierarchies to a page map. Usually you have one page map per 
> session. Wicket's transaction support is no better or worse then the 
> next web framework.
> 
> Regards,
> Erik.
> 
> 
> HHB wrote:
>> What I would like to know?
>> If Wicket supports multi-window/tap (beginning a new (what I can call?) a
>> conversation)?
>> Well, yes, it does
>> http://wicketstuff.org/wicket13doc/org/apache/wicket/settings/IPageSettings.html
>> Multi-window/tap isn't the gem of Seam, one of them 
>> :)
>> We need to do more marketing for wicket guys:ninja:
>>
>>
>> Erik van Oosten wrote:
>>   
>>> Apart from letting you guess what a page map is (a collection of visited 
>>> pages) I think Ernesto gave a very decent response. So lets turn this 
>>> around:
>>>
>>> What would you like to know?
>>>
>>> Regards,
>>> Erik.
>>>
>>>
>>> PS. If that really is /the/ gem of Seam, you're in for a treat with 
>>> Wicket! ;)
>>>
>>>
>>> HHB wrote:
>>> 
 This effects all the Wicket pages in the application, right?
 Seam folks advertise this feature as one of the gems of Seam framework,
 why
 Wicket doesn't shed more light on it?
 Common Wicket, no need to be humble this time :)

   
   
>>> --
>>> Erik van Oosten
>>> http://day-to-day-stuff.blogspot.com/
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>> 
>>
>>   
> 
> -- 
> 
> --
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Multi-tap-operations-in-Wicket-tp21125698p21141315.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Dojo 1.1 integration available from wicketstuff

2008-12-23 Thread Emanuele Gesuato

Stefan Fußenegger wrote:

There's now a little bit of documentation online:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-dojo-1.1

Cheers, Stefan



Hi,

First of all, good job.

Is there any plan to support the dojo context menu ?  :-)

We are using it but we've got several warnings with some deprecation 
calls on the html document in development that are quite annoying.
Also if i have different context menu in the same page and if these 
context menu has submenus, the submenus are sharing the same instance of 
the content component.


Example:
If i have menuA and menuB in two tables, tableA and tableB. If i right 
click on menuA or menuB in the java code i see that the referenced 
component is always on tableB. This only happens in the voices of the 
menu that are in a submenu.




Thanks for any help,
Emanuele


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